using SqlSugar;

/*
 * @author : xkdong@163.com
 * @date : 2024-3-15
 * @desc : 预约随访表
 */
namespace YOUYOU.Models.Entities.DBModels
{
    /// <summary>
    /// 预约随访表
    /// </summary>
    [SugarTable("appoint_followup", TableDescription = "预约随访表")]
    public class AppointFollowup
    {
        /// <summary>
        /// 随访预约ID（自增）
        /// </summary>
        [SugarColumn(ColumnName = "ID" ,IsIdentity = true, IsPrimaryKey = true)]
        public int ID{ get; set; }
        
        /// <summary>
        /// 病人ID（关联病人建档表）
        /// </summary>
        [SugarColumn(ColumnName = "PatientID")]
        public string? PatientID{ get; set; }
        
        /// <summary>
        /// 预约随访日期和时间
        /// </summary>
        [SugarColumn(ColumnName = "FollowUpDate")]
        public DateTime? FollowUpDate{ get; set; }
        
        /// <summary>
        /// 随访内容(随访时需要关注或讨论的内容)
        /// </summary>
        [SugarColumn(ColumnName = "Contents")]
        public string? Contents{ get; set; }
        
        /// <summary>
        /// 随访方式(1.门诊，2.家庭,3.电话)
        /// </summary>
        [SugarColumn(ColumnName = "FollowUpMethods")]
        public int? FollowUpMethods{ get; set; }
        
        /// <summary>
        /// 随访医生ID(关联人员信息表)
        /// </summary>
        [SugarColumn(ColumnName = "DoctorID")]
        public int? DoctorID{ get; set; }
        
        /// <summary>
        /// 预约状态(1.已完成，2.未完成)
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public int? Status{ get; set; }
        
        /// <summary>
        /// 下单时间(记录预约创建的时间)
        /// </summary>
        [SugarColumn(ColumnName = "CreationDate")]
        public DateTime? CreationDate{ get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Description")]
        public string? Description{ get; set; }
        
    }
}